Skip to content

fix(auth): Stop counting a failed identity refresh as verified - #132300

Draft
cleptric wants to merge 1 commit into
masterfrom
fix/check-auth-failed-refresh
Draft

cleptric wants to merge 1 commit into
masterfrom
fix/check-auth-failed-refresh

Conversation

@cleptric

Copy link
Copy Markdown
Member

check_auth refreshes SSO identities about once a day. It stamped an identity as verified even when the refresh raised an error other than IdentityNotValid, so an identity whose refresh kept failing stayed valid.

It now only updates last_verified when the provider answered. An identity that no refresh has verified for a week is already treated as invalid, so the member then signs in with the provider again. A refresh that fails once or for a few days changes nothing for the member.

Refs #43182
Refs ENG-6427

🤖 Generated with Claude Code

check_auth stamped an auth identity as verified even when the refresh
raised an error other than IdentityNotValid, so an identity whose
refresh kept failing stayed valid.

Only update last_verified when the provider answered. An identity that
no refresh has verified for a week is already treated as invalid, so
the member then signs in with the provider again.

Refs #43182

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 24, 2026

Copy link
Copy Markdown

ENG-6427

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant